<template>
  <div>
    <p>parent</p>
    <button @click="change">更改子组件的值</button>
    <hr />
    <Child ref="childRef"></Child>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import Child from './07-refChild.vue'

const childRef = ref()
const change = () => {
  childRef.value.changeCount(24)
}
</script>

<style scoped></style>
